<?php 
	//for form submit
	if($_SERVER['REQUEST_METHOD'] == "POST"){
		if(isset($_POST['id']) && !empty($_POST['id'])){
			$table_def 	= array('filter' => 'id = '.$_POST['id']);
			$obj = new UserType($table_def);
			$obj->Delete();
		}
	}
?>